iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 3
0
Modern Web

用30days 了解web系列 第 3

(day 03) Laravel Installation Guide

  • 分享至 

  • xImage
  •  

today's article, I'm going to use Laravel 5.8. reasons why v 5.8, because I found that Laravel 5.8 is one of the stable versions out there. so for today's article, I'm going to give a walkthrough on Laravel 5.8 installation. as I'm writing this article, I use PHP (7.2.3), Cmder as my terminal, Wamp server as my local server.

Requirements
before going through the installation part. firstly we need to understand the requirement. make sure you meet the following requirements:

PHP (at least 7.1.13), for those who don't have PHP on your computer, please check here
for who wanted to check if there is PHP on computer, just go to terminal and type:

php -v

apache as a server. there is two software you can use outthere, there is WampServer and the other one is XAMPP.

Installing Laravel
Laravel actually uses Composer as dependencies. so let's install Composer here.
to make sure you have installed Composer on your machine, you can type below script on your terminal.

composer

https://ithelp.ithome.com.tw/upload/images/20200916/20129609ddWJnw2Rs7.png

after installing Composer. finally, we can create our very first Laravel project. to create a Laravel project via Composer. All you need to do is just simply run the script below. the word 'blog' is the project name, and don't forget to type "5.8.*" because we wanted to create a Laravel 5.8 project.
notes:
for those who using WampServer, please don't forget to run the script under wamp64/www directory. and those who using Xampp run the script under xampp/htdocs directory.

composer create-project --prefer-dist laravel/laravel blog "5.8.*"

to run your Laravel project, firstly you need to change the file directory to your project directory on your terminal and run the script.

php artisan serve

and open your browser type localhost:8000 or 127.0.0.1:8000 and Enjoy!!!
https://ithelp.ithome.com.tw/upload/images/20200916/20129609lhP4NvmVxp.png


上一篇
(Day 02) Laravel Introduction and Understanding Laravel Framework
下一篇
(Day 04) Creating CRUD with Laravel, Mysql, Bootstrap part I
系列文
用30days 了解web30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言